﻿using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.AutoMapper;
using Volo.Abp.Modularity;
using Xms.Abp.Application;
using Xms.Abp.Modularity;
using Xms.Abp.ObjectMapping;

namespace MemberManagement;

[DependsOn(
    typeof(MemberManagementDomainModule),
    typeof(MemberManagementApplicationContractsModule),
    typeof(XmsAbpObjectMappingModule),
    typeof(XmsAbpDddApplicationModule)
    )]
public class MemberManagementApplicationModule : XmsModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        context.Services.AddAutoMapperObjectMapper<MemberManagementApplicationModule>();
        Configure<AbpAutoMapperOptions>(options =>
        {
            options.AddProfile<MemberManagementApplicationAutoMapperProfile>(validate: true);
        });
    }
}
